package cn.iocoder.yudao.module.pay.controller.admin.pricingrules.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 用于支付模型翻译的价格套餐列 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PricingRulesRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31724")
    @ExcelProperty("id")
    private Integer id;

    @Schema(description = "源语言，NULL表示所有语言")
    @ExcelProperty(value = "源语言，NULL表示所有语言", converter = DictConvert.class)
    @DictFormat("ai_trans_langure") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String sourceLanguage;

    @Schema(description = "目标语言，NULL表示所有语言")
    @ExcelProperty(value = "目标语言，NULL表示所有语言", converter = DictConvert.class)
    @DictFormat("ai_trans_langure") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String targetLanguage;

    @Schema(description = "字符数下限", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("字符数下限")
    private Integer minCharacters;

    @Schema(description = "字符数上限，NULL表示无上限")
    @ExcelProperty("字符数上限，NULL表示无上限")
    private Integer maxCharacters;

    @Schema(description = "每千字符价格", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("每千字符价格")
    private BigDecimal pricePer;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态（0正常 1停用）")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}